<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_grade_rebate".
 *
 * @property integer $id
 * @property integer $gradeid
 * @property double $min_amount
 * @property double $rebate_rate
 * @property integer $created_at
 * @property integer $updated_at
 */
class GradeRebate extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_grade_rebate';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['gradeid', 'created_at', 'updated_at'], 'integer'],
            [['min_amount', 'rebate_rate'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增ID',
            'gradeid' => '代理级别',
            'min_amount' => '最小充值金额',
            'rebate_rate' => '返利比例',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
